Skip to content

fix: preserve pip diagnostics when dependency downloads fail - #930

Open
Shubham-Padkonde wants to merge 1 commit into
aws:developfrom
Shubham-Padkonde:fix/preserve-pip-download-diagnostics
Open

Shubham-Padkonde wants to merge 1 commit into
aws:developfrom
Shubham-Padkonde:fix/preserve-pip-download-diagnostics

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown

Issue #: Fixes #363.

Description of changes

Keep pip's original error output when a download ends with a no-matching-distribution message. Certificate verification errors preceding that final message are currently discarded, making a certificate problem look like a missing package. Preserve the existing exception type and keep direct NoSuchPackageError(package_name) calls compatible.

Prepared with OpenAI Codex assistance.

Description of how you validated changes

The SSL-diagnostic regression fails before the fix. All 129 Python packaging unit tests pass afterward. The broader unit suite reports 829 passed and three failures; the same three failures reproduce with the original production file (Windows command lookup and a Rust logger mock expectation). Black and diff checks pass. Ruff reports the same 16 existing test-file findings before and after; production file passes. No live SAM deployment, Docker build, or certificate configuration changes.

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Shubham-Padkonde
Shubham-Padkonde requested a review from a team as a code owner September 22, 2026 06:44
@github-actions github-actions Bot added pr/external stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. area/workflow/python_pip labels Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/workflow/python_pip pr/external stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sam build obscures pip ssl errors

1 participant